#ifndef ChangeDialog_First
#define ChangeDialog_First
#ifdef __GNUG__
#pragma interface
#endif

#include "FindDialog.h"

class TextField;
class OneOfCluster;
class VObject;
class TextView;
class Text;

const int
	cIdChange           = cIdFirstUser + 20,
	cIdChangeBorder     = cIdFirstUser + 21,
	cIdDoChange         = cIdFirstUser + 22,
	cIdDoChangeAll      = cIdFirstUser + 23,
	cIdChangeAllScope   = cIdFirstUser + 24,
		cIdChangeAll      = cIdChangeAllScope,
		cIdChagenSel      = cIdChangeAllScope+1;

//---- ChangeDialog ------------------------------------------------------------

class ChangeDialog : public FindDialog {
public:
	MetaDef(ChangeDialog);
	ChangeDialog(const char *title);
	virtual void DoChangeAll(const char *pat, const char*);
	virtual void DoChange(const char *pat, const char*);
	int ChangeAll(int from, int to, const char *find, const char *change);

protected:
	VObject *DoMakeControls();
	VObject *DoMakeActions();
	void DoSetup();
	void Control(int id, int, void *v);
protected:
	TextField *ei2;
	OneOfCluster *scopecl;
	VObject *change;
	VObject *changeAll;
};

#endif
